package com.zhaokuner.echo;

import java.nio.ByteBuffer;
import java.nio.channels.Selector;
import java.util.LinkedList;

public class EchoClientModel {

	private LinkedList<ByteBuffer> outq;
	private Selector selector;

	public EchoClientModel(Selector selector) {
		this.selector = selector;
		outq = new LinkedList<ByteBuffer>();
	}

	public LinkedList<ByteBuffer> getOutputQueue() {
		return outq;
	}

	public void enqueue(ByteBuffer bb) {
		outq.addFirst(bb);
	}

	public Selector getSelector() {
		return selector;
	}
}
